package com.heima.user.controller;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dto.UserLoginDto;
import com.heima.user.service.ApUserService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: test
 * @Create by: JJ菜菜
 * @Date: 2021/12/31 12:52
 */
@RestController
@RequestMapping("/api/v1/login")
@Api(value = "app端用户登录", tags = "ap_user", description = "app端用户登录api")
public class ApUserController {
    @Autowired
    private ApUserService service;

    /**
     * app端用户登录
     * @param dto
     * @return
     */

    @PostMapping("/login_auth")
    public ResponseResult login(@RequestBody UserLoginDto dto){
        return service.login(dto);
    }





}
